package com.wanmait.recruit.pojo;

import java.io.Serializable;
import java.util.Date;

public class AdminLog implements Serializable {
    private Integer id;

    /**
	* 管理员ID
	*/
    private Admin admin;

    /**
	* 操作时间
	*/
    private Date time;

    /**
	* 登录IP
	*/
    private String ip;

    /**
	* 操作内容
	*/
    private String logInfo;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Admin getAdmin() {
        return admin;
    }

    public void setAdmin(Admin admin) {
        this.admin = admin;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getLogInfo() {
        return logInfo;
    }

    public void setLogInfo(String logInfo) {
        this.logInfo = logInfo;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", adminId=").append(admin.getId());
        sb.append(", time=").append(time);
        sb.append(", ip=").append(ip);
        sb.append(", logInfo=").append(logInfo);
        sb.append("]");
        return sb.toString();
    }
}